from redminelib import Redmine
from time import strftime,gmtime
import time

from redmine_use import RedmineUse

redmine = Redmine('http://222.212.87.87:19503/',username='chencheng',password='chencheng')
project = redmine.project.get('nms-test-tasl')
print(project.id)
issues=list(redmine.issue.filter(project_id=204,tracker_id=1,status_id='o',fixed_version_id=841))
name = issues[0].assigned_to.name
print(type(name))

today1 = strftime('%Y-%m-%d',gmtime())
re = RedmineUse(204,841)
for i in range(len(re.issues)):
    try:
        print(re.issues[i].assigned_to.name)
    except Exception as e:
        print(i)
        print("错误*******************************************************")